package com.beikbank.modules.baseuser.service.baidu;


import com.beikbank.common.utils.baidu.Base64Util;
import com.beikbank.common.utils.baidu.FileUtil;
import com.beikbank.common.utils.baidu.GsonUtils;
import com.beikbank.common.utils.baidu.HttpUtil;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;

/**
 * 人脸探测
 *
 * @author liyingming
 * @data 2017-11-15
 */
@Service
public class FaceDetectServiceMock implements FaceDetectService {

    @Override
    public String detect() {
        return null;
    }

    @Override
    public Map<String, String> detectby(byte[] arg0) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("age", "18");
        //处理美丑打分
        map.put("beauty", "如花似玉");
        map.put("gender", "非男即女");
        map.put("glasses", "1");
        map.put("expression", "1");
        return map;
    }

}